home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / printer / jcosub26.zip / QUICKREF.DOC < prev    next >
Text File  |  1997-05-03  |  13KB  |  381 lines

  1. JACOsub Script Format - Quick Reference
  2. =======================================
  3.  
  4. This document serves as a brief summary to JScripts.doc.  Refer to
  5. JScripts.doc for complete details.
  6.  
  7.  
  8. SCRIPT COMPILER COMMANDS
  9. ========================
  10.  
  11. #  (followed by a space) Comment.  The line will be ignored.
  12.  
  13. #C[LOCKPAUSE] <time>
  14.    Force clock to pause at time specified while playing.  Keypress resumes.
  15.  
  16. #D[IRECTIVE][n] <directive string> [optional_name]
  17.    Change default directive n.  n=0 (overall directive) if n omitted.
  18.    n may range from 0 to 30.  The optional_name can be used in timed lines
  19.    in place of the default directive code.  A directive name in a timed
  20.    line must be enclosed in square brackets [], but it should not contain
  21.    brackets in the original name definition.
  22.  
  23. #F[ONT] <n> <fontname.font> <h> [CLEAN or QUICK&DIRTY] [Y/X]
  24.    Set font n to fontname.font, h pixels tall.  n may range from 0 to 9.
  25.    Mono fonts are always QUICK&DIRTY (rendered fast).
  26.    For face colors other than 3, color fonts default to CLEAN (rendered
  27.    one character at a time), unless QUICK&DIRTY is specified.
  28.    Y/X is used to change the aspect ratio from 1/1 (AmigaDOS 2.0+).
  29.  
  30. #H[RES] <HIRES or SUPERHIRES>
  31.    Set resolution mode expected to be used in the script.
  32.  
  33. #I[NCLUDE] <time> <filename>
  34.    Include script file <filename> into the current script, offsetting
  35.    the new script's start time by the time specified.  Offset cannot be
  36.    negative.  Offset units depend on time units set by #TIMERES.
  37.    #F, #P, #Q, and #R in an included script will be ignored.
  38.    The effects of #D, #S, and #T are passed down into included scripts.
  39.  
  40. #P[ALETTE] <color> <r> <g> <b> [palette]
  41.    For specified color register, set RGB intensities (0 to 15).  palette
  42.    defaults to 0 (primary palette), but may be 0 through 9.  Use palettes
  43.    1 - 9 with the CP directive.
  44.  
  45. #Q[UANTIZE][n]
  46.    Eliminate timing gaps between subtitles of less than n time units.
  47.    Number of time units per second is specified by #TIMERES.
  48.  
  49. #R[AMP] <seconds.units>
  50.    Adjust script play for time drift by changing the script's overall
  51.    running time.  Positive ramp adjustments lengthen the play, negative
  52.    adjustments shorten it.  Time units are determined by #TIMERES.
  53.  
  54. #S[HIFT] <[[hours:]minutes:]seconds.units>
  55.    Shift all times in script by the amount specified.  Positive shifts
  56.    delay time events, negative shifts advance them.
  57.  
  58. #T[IMERES] <n>
  59.    Set time resolution of script to n units per second.  Default is 30
  60.    if this command does not appear in the script.
  61. ESCAPE CODES TO EMBED IN TITLES
  62. ===============================
  63.  
  64. \   (If last character in a line) Concatenate.  Assume next line in script
  65.     continues current title.  Leading and trailing spaces in concatenated
  66.     lines are ignored.
  67.  
  68. \n  Newline.  Use to split a title text into multiple lines.  \n codes
  69.     override wordwrapping, but the resulting text substrings might still
  70.     be individually wordwrapped if needed.
  71.  
  72. \{  Display a left brace, which is normally used to begin a non-displaying
  73.     comment embedded in the title.
  74.  
  75. \~  Display a tilde, which is normally used to create a "hard" non-
  76.     wrappable space.
  77.  
  78. \\  Display a backslash, which is normally used to begin an escape code.
  79.  
  80. \D  Insert date here (DD MMM YYYY format).
  81.  
  82. \T  Insert time here (24-hour HH:MM format).
  83.  
  84. \N  Normal.  Display text that follows in "normal" style.  Equivalent to
  85.     the SN directive.
  86.  
  87. \I  Italics on. Display text that follows in italics.  Equivalent to the
  88.     SI directive.
  89. \i  Italics off.
  90.  
  91. \B  Boldface on.  Display text that follows in boldface (sometimes useful).
  92.     Equivalent to the SB directive.
  93. \b  Boldface off.
  94.  
  95. \U  Underline on.  Underline text that follows (not useful).  Equivalent to
  96.     the SU directive.
  97. \u  Underline off.
  98.  
  99.     Note:  /I, /B, and /U were mutually exclusive prior to version 2.6,
  100.     now the styles can be combined.  \N turns off all styles.
  101.  
  102. \Cn Color n.  Use face color n for text that follows.  n is a hexadecimal
  103.     digit ranging from 0 to 9 and A to F (or a to f).  Equivalent to the
  104.     CF directive.
  105.  
  106. \Fn Font n.  Use font n (0 to 9) for text that follows.  Equivalent to the
  107.     F directive.
  108. TITLE DIRECTIVES
  109. ================
  110. Directives occur after the stop time is specified.  You may omit the title
  111. directive if you title begins with a non-alphabet character (such as a left
  112. brace for a {comment}), in which case the directive defaults to D.  Defined
  113. directives and their names [enclosed in brackets] are interchangeable.
  114.  
  115. Vertical positioning
  116. --------------------
  117.  
  118.   VA
  119.      Vertical continuation Above previous title, using previous title's
  120.      vertical positioning setting.  Opposite of VU.
  121.  
  122.   VB[n]
  123.      Vertical Bottom, offset from bottom of display by n pixels.  n may
  124.      be omitted (default n, usually 16, can be set with the #D command).
  125.  
  126.   VHn
  127.      Vertical line Height n% of normal.  VH200 makes double-spaced lines.
  128.  
  129.   VL[n]
  130.      Vertical Line position n.  Line height depends on font size.  If n is
  131.      negative or omitted, vertical line position will be where the previous
  132.      timed line started.
  133.  
  134.   VM[n]
  135.      Vertical Middle.  Center vertically between VTn and VBn position.
  136.      n=0 by default, otherwise shifts block up or down n text lines.
  137.  
  138.   VPn
  139.      Vertical Pixel position n.  Baseline of font will be n pixels from
  140.      top of display.
  141.  
  142.   VSn
  143.      Scroll text up at speed n (-6=slowest, 4=fastest).  n is frames per
  144.      raster line if n<0, or raster lines per frame if n>0.
  145.  
  146.   VT[n]
  147.      Vertical Top, offset from top of display by n pixels.  n may be
  148.      omitted (default n, ususally 16, can be set with the #D command).
  149.  
  150.   VU
  151.      Vertical continuation Under previous title, using previous title's
  152.      vertical positioning setting.  Opposite of VA.
  153.  
  154. Horizontal positioning
  155. ----------------------
  156.  
  157.  Margins:
  158.  
  159.   HLn
  160.      Horizontal Left margin n% of display width from left edge.
  161.  
  162.   HRn
  163.      Horizontal Right margin n% of display width from right edge.
  164.  
  165.  Text justification:
  166.  
  167.   JC
  168.      Justify Center.  Text is centered within HLn - HRn constraints.
  169.  
  170.   JF[:p]
  171.      Justify Full.  Aligns left and right edges with the ends of the
  172.      widest line in the text box.  Last line in block is unaffected, except
  173.      to position it Left, Right, or Center (default), when :p is :L, :R, or
  174.      :C, respectively.  JF:U means Unconditional justification -- ALL lines
  175.      in the block will be stretched to fit exactly within the margins.
  176.  
  177.   JL
  178.      Justify Left.  Align left edge of text at the HLn margin position.
  179.  
  180.   JR
  181.      Justify Right.  Align right edge of text at the HRn margin position.
  182.  
  183.  Block justification:
  184.  
  185.   JBC
  186.      Justify Block Center.  Position the text, after wordrwapping, so that
  187.      it is centered within the margins, preserving the text justification.
  188.      To get "AnimEigo" positioning, use JBC with JL.
  189.  
  190.   JBF
  191.      Justify Block Full.  Cancel the effect of any JB directive if one
  192.      happens to be in use as a default directive.
  193.  
  194.   JBL
  195.      Justify Block Left.  Position the text block at the left margin.
  196.  
  197.   JBR
  198.      Justify Block Right.  Position the text block so that the right
  199.      edge is at the right margin, preserving the text justification.
  200.  
  201.  Word wrapping:
  202.  
  203.   W0
  204.      Disable automatic word wrapping.  Warning: text may overflow screen
  205.      boundaries.
  206.  
  207.   W1
  208.      Automatic "smart" word wrapping (default).  Wrap text so that the
  209.      screen area consumed by the title is minimized.
  210.  
  211.   W2
  212.      Automatic "stupid" (generally known as "greedy") word wrapping.
  213.      Fit as much text into a line as possible without regard to appearance
  214.      or screen space consumed.
  215.  
  216. Fonts
  217. -----
  218.  
  219.  Font rendering:
  220.  
  221.   Fn
  222.      Use font n (0 - 9) for the title text.
  223.  
  224.   FQ
  225.      Force title to be rendered Quick&Dirty.  Mono-color fonts and
  226.      colorfonts using color 3 are always quick anyway.
  227.  
  228.   FC
  229.      Force title to be rendered Clean (1 character at a time) to avoid font
  230.      shadow overlap interference problems.rendering.  Mono-color fonts and
  231.      colorfonts using color 3 will still be rendered fast.
  232.  
  233.   FD
  234.      Force Default text rendering.  Used to override a global #DFC or #DFF
  235.      command.
  236.  
  237.   FBn
  238.      Use blitter (n=1) to copy overlapping time range title imagery between
  239.      buffers, or generate such titles afresh (n=0) on each buffer.
  240.  
  241.   FOn[:a]
  242.      Generate Font Outline n pixels wide, optionally use antialias color a.
  243.      Warning:  This slows the program down considerably.
  244.  
  245.   FSdn
  246.      Generate Font Shadow in direction d (one of 8 compass directions
  247.      N, S, E, W, NW, NE, SW, SE), n pixels deep.
  248.  
  249.  Font style (may also be set with \ codes in the title text):
  250.  
  251.   SN
  252.      Normal style (typical default).
  253.  
  254.   SI
  255.      Italic.
  256.  
  257.   SB
  258.      Bold (using the JACOsub font, this looks best with color 3).
  259.  
  260.   SU
  261.      Underline (ugly!  Not recommended).
  262.  
  263.  Color
  264.  
  265.   CFn
  266.      Color Fontface n.
  267.  
  268.   CBn
  269.      Color Background n.  Screen is cleared to color n prior to rendering
  270.      anything to it.  Useful for creating a genlock-opaque background if
  271.      n is nonzero.
  272.  
  273.   CPn
  274.     Load Color Palette n (0 to 9, set with #PALETTE command) at the start
  275.     time of this title.  If you can see the palette change after the
  276.     display is updated, precede your alternate palette lines with a "dummy"
  277.     short-duration blank screen (containing a hard space) using your
  278.     alternate palette.
  279.  
  280.   CS[L]n[:s[:c]]
  281.     Color Shaded box with n-pixel margin around text, using shade style :s
  282.     (:0=pattern, :1=solid color), using optional color :c (normal default
  283.     is :2 [black], can be re-set with a #D command).  Titles that overlap
  284.     in time AND use the CS directive will be surrounded by a SINGLE box; if
  285.     CSL is used, a box will appear around individual lines (including
  286.     segments resulting from wordwrapping).  n=0 disables shading.
  287.  
  288. Genlock fader control
  289. ---------------------
  290.  
  291.   GBn[Tm]
  292.     Genlock Background n% of saturation in m/60 seconds.  m=0 if Tm is
  293.     omitted.  n=0 is a transparent background.
  294.  
  295.   GGn[Tm]
  296.     Genlock Graphics n% of saturation in m/60 seconds.  m=0 if Tm omitted.
  297.     n=100 is full-on graphics.
  298.  
  299.   Note:  Do not use the G directives in the global #D command.
  300.  
  301. Special effects
  302. ---------------
  303. Default speed [s]=8 for all effects; [s] may range from 1 to 64.  If [s]=0
  304. or [s]=?, the speed will be random.
  305. d=direction: V=vertical, H=horizontal, O=open, C=close, L=left, R=right,
  306. U=up, D=down
  307.  
  308.   EBd[s]
  309.     Blinds; d may be V or H.
  310.  
  311.   ED[s]
  312.     Dissolve.  Three speeds: slow (s=0,1), medium (s=2,3), faster (s=4).
  313.  
  314.   EEdd[s]
  315.     Eyelid; dd may be VO, VC, HO, or HC.
  316.  
  317.   EId[s]
  318.     Iris; d may be O or C.
  319.  
  320.   EN
  321.     Normal transition (default).  New view replaces old.  Also E0.
  322.  
  323.   EPn[:s]
  324.     Palette fade from current palette to palette n; [:s] may be 0 to 255.
  325.  
  326.   EP+a[:b[:p]]
  327.   EP-a[:b[:p]]
  328.     Palette cycle forward (+) or backward (-) from colors a to b (default
  329.     max color index) using period [:p] video fields (1-255, default 2) per
  330.     cycle step.
  331.  
  332.   ERd[s]
  333.     Roll old view off while rolling new view in; d may be U, D, L, R.
  334.  
  335.   ESd[s]
  336.     Scroll new view up (d=U) or old view down (d=D).
  337.  
  338.   EWd[s]
  339.     Wipe; d may be U, D, L, R.
  340.  
  341.   E?[s]
  342.     Random transition; s may also be 0 or ? for random speeds.
  343.  
  344. Directives using the title string for parameters
  345. ------------------------------------------------
  346.   Note:  Do not use R directives in the global #D command.
  347.  
  348.   RLB <ILBM file name> [<x offset %> <y offset %>]
  349.     Load a background IFF brush into the video screen for the time interval
  350.     specified by this line's start and stop time.  Current screen colors
  351.     will be used; the IFF colors will be ignored.  x and y are percents of
  352.     screen width and height to offset the center of the bitmap from the
  353.     center of the screen.  Through overlapping time ranges, as many as
  354.     40 images may be loaded onto a single screen, memory permitting.
  355.     Text can appear concurrently with the bitmaps.
  356.  
  357.   RLG <ILBM file name>
  358.     Load an IFF graphic file into its own screen, using the file's own
  359.     resolution and colors.  Text cannot appear concurrently.
  360.  
  361.   RDB <left> <top> <right> <bottom>
  362.     Draw a solid rectangle in the current font color in units specified as
  363.     percentages of display width and height.
  364.  
  365.   RX <ARexx script name>
  366.     Execute the ARexx script name that follows the RX directive.  Do not
  367.     specify other directives on the same line, and have no more than one
  368.     RX directive per time event.
  369.  
  370. Default directives
  371. ------------------
  372.  
  373.   D or D0
  374.     Default 0verall.  To be used if no other directives are used.  The
  375.     behavior of D can be set with the #D command.
  376.  
  377.   Dn
  378.     Default alternate n (1 - 20).  Use these for "shortcuts" to long
  379.     directive strings that you like to use repeatedly.  Set with the #D
  380.     command.
  381.